package com.xuliugen.jwt.demo.service.impl;

import com.xuliugen.jwt.demo.command.LoginCommand;
import com.xuliugen.jwt.demo.dto.UserDTO;
import com.xuliugen.jwt.demo.mapper.UserMapper;
import com.xuliugen.jwt.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author xuliugen
 *
 * @date 2018/1/31
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public Map<String, Object> login(LoginCommand command) {
        return null;
    }

    @Override
    public List<UserDTO> listUser() {
        return userMapper.listUser();
    }
}
